<!DOCTYPE html>
<html lang="en">
<head th:insert="/admin/common/head::css"></head>
<body>
<div th:insert="/admin/common/header::header" ></div>
<!--  main  -->
<div class="container-fluid">
  <div class="row-fluid">
    <div th:insert="/admin/common/side::side" ></div>
    <!-- content -->
    <div class="block">
      <div class="block-content collapse in">
        <div class="span12">
          <form class="form-horizontal" method="post" th:action="@{/admin/user/myzhiye/update}">
            <fieldset>
              <legend>用户修改</legend>

              <div class="control-group">
                <label class="control-label">序号</label>
                <div class="controls">
                  <input readonly type="text" class="input-xlarge datepicker" id="id" name="id" th:value="${zhiye!=null?zhiye.id:''}">
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">就读学校</label>
                <div class="controls">
                  <input type="text" class="input-xlarge datepicker" id="school" name="school" th:value="${zhiye!=null?zhiye.school:''}">
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">城市</label>
                <div class="controls">
                  <input type="text" class="input-xlarge datepicker" id="city" name="city" th:value="${zhiye!=null?zhiye.city:''}">
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">就读学位</label>
                <div class="controls">
                  <input type="text" class="input-xlarge datepicker" id="xuewei" name="xuewei" th:value="${zhiye!=null?zhiye.xuewei:''}">
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">所在公司</label>
                <div class="controls">
                  <input type="text" class="input-xlarge datepicker" id="company" name="company" th:value="${zhiye!=null?zhiye.company:''}">
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">职位</label>
                <div class="controls">
                  <input type="text" class="input-xlarge datepicker" id="position" name="position" th:value="${zhiye!=null?zhiye.position:''}">
                </div>
              </div>

              <div class="control-group" >
                <label class="control-label">工资</label>
                <div class="controls">
                  <input type="number" class="input-xlarge datepicker" id="salary" name="salary" th:value="${zhiye!=null?zhiye.salary:''}">
                </div>
              </div>

              <div class="control-group success">
                <label class="control-label" for="selectError">就业信息</label>
                <div class="controls">
                  <select id="selectError" required name="type" th:value="${zhiye!=null? zhiye.type:''}">
                    <option th:selected = "${zhiye != null ? zhiye.type == 0:''}" value = "0">读研</option>
                    <option th:selected = "${zhiye != null ? zhiye.type == 1:''}" value="1">就业</option>
                  </select>
                </div>
              </div>

              <div class="control-group" >
                <label class="control-label">开始时间</label>
                <div class="controls">
                  <input required  type="month" class="input-xlarge datepicker" id="begintime" name="begintime" th:value="${zhiye!=null?zhiye.begintime:''}">
                </div>
              </div>

              <div class="control-group" >
                <label class="control-label">结束时间</label>
                <div class="controls">
                  <input required type="month" class="input-xlarge datepicker" id="endtime" name="endtime" th:value="${zhiye!=null?zhiye.endtime:''}">
                </div>
              </div>

              <div class="control-group success">
                <label class="control-label" for="selectError">是否可见</label>
                <div class="controls">
                  <select id="selectError2" required name="flag" th:value="${zhiye!=null? zhiye.flag:''}">
                    <option th:selected = "${zhiye != null ? zhiye.flag == 0:''}" value = "0">可见</option>
                    <option th:selected = "${zhiye != null ? zhiye.flag == 1:''}" value="1">不可见</option>
                  </select>
                </div>
              </div>

              <div class="form-actions">
                <button type="submit" class="btn btn-primary"  >[[ ${zhiye!=null?'更新':'新增'} ]]</button>
              </div>

            </fieldset>
          </form>

        </div>
      </div>
    </div>
    <!-- content -->
  </div>
</div>
<!--  main  -->

</body>
<div th:insert="/admin/common/footer::js" ></div>

</html>